﻿@ech off

set textureBin=C:\TexturePacker\bin

@REM for /f "usebackq tokens=*" %%d in (`dir /s /b *.pvr.ccz`) do (
@REM %textureBin%\TexturePacker.exe --sheet "%%~dpnd.png" "%%d" --algorithm Basic --allow-free-size --no-trim
@REM )

for /f "usebackq tokens=*" %%d in (`dir /s /b *.pvr *.pvr.ccz *.pvr.gz`) do (
    %textureBin%\TexturePacker.exe "%%d" --sheet "%%~dpnd.png" --data "%%~dpnd.plist" --opt RGBA8888 --allow-free-size --algorithm Basic --no-trim --dither-fs
)

del out.plist

call python "%~dp0/deletePvr.py" %*

pause